package com.onlinexam.service.impl;

import com.online.exam.pojo.ExamPlanInfo;
import com.onlinexam.dao.ExamPlanInfoMapper;
import com.onlinexam.service.ExamPlanInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ExamPlanInfoServiceImpI implements ExamPlanInfoService {

    @Autowired
    private ExamPlanInfoMapper examPlanInfoMapper;


    public List<ExamPlanInfo> getExamPlans(Map<String, Object> map) {
        return examPlanInfoMapper.getExamPlans(map);
    }


    public int isAddExamPlan(ExamPlanInfo examPlan) {
        return examPlanInfoMapper.isAddExamPlan(examPlan);
    }


    public int isUpdateExamPlan(ExamPlanInfo examPlan) {
        return examPlanInfoMapper.isUpdateExamPlan(examPlan);
    }


    public ExamPlanInfo getExamPlanById(int examPlanId) {
        return examPlanInfoMapper.getExamPlanById(examPlanId);
    }
    //查询学生待考信息

    public List<ExamPlanInfolanInfo> getStudentWillExam(Map<String, Object> map) {
        return examPlanInfoMapper.getStudentWillExam(map);
    }
    //移除过期考试安排
    public int isRemoveExamPlan(int examPlanId) {
        return examPlanInfoMapper.isRemoveExamPlan(examPlanId);
    }
}
